package core;

import picocli.CommandLine.*;
import repository.Repository;

import java.io.IOException;

@Command(
        name = "init"
)
/**
 * 实现了jit init命令，初始化.jit文件夹
 */
public class JitInit implements Runnable{
    @Override
    public void run() {
        if(!Repository.createRepo()){
            System.err.println("Fatal: Failed to create Repository.");
            System.exit(-1);
        }
    }
}
